﻿using Network.UpdateData;
using System.Net.Sockets;

namespace SFJDService.SocketHandle
{
    /// <summary>
    /// 接收到用户界面发送的请求：删除指定的contact
    /// </summary>
    class PH03Request2RemoveContact : PacketHandle
    {
        public PH03Request2RemoveContact(Socket socket, Packet packet) : base(socket, packet) { }

        protected override void Handle()
        {
            if (Runtime.thisUser.IsAdmin)
            {
                if(Message != null && Message != "")
                {
                    Launcher.SendMsg2All(typeof(PH03RmoveContact).GetDictianaryKey(), Message);
                }
            }
        }
    }
}
